<template>
    <div id="particles-js"/>
</template>

<script>
import particlesConfig from "../components/particles/particles.json";

export default {
    name: "particles",
    mounted() {
        this.init();
    },
    methods:{
        init() {
            particlesJS("particles-js", particlesConfig);
            document.body.style.overflow = "hidden";
        },
    }
}
</script>

<style>
#particles-js{
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
</style>